#include "formdcssetting.h"
#include "ui_formdcssetting.h"

FormDCSSetting::FormDCSSetting(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::FormDCSSetting)
{
    ui->setupUi(this);
    setWindowFlags(windowFlags() | Qt::Dialog);
    setWindowModality(Qt::ApplicationModal);
    setAttribute(Qt::WA_DeleteOnClose);
    qDebug() << "[FormDCSSetting] \t Constructor";
}

FormDCSSetting::~FormDCSSetting()
{
    delete ui;
    qDebug() << "[FormDCSSetting] \t Destructor";
}


void FormDCSSetting::on_pushButtonDCSSettingReturn_clicked()
{
    this->close();
}

void FormDCSSetting::on_pushButtonNetSetting_clicked()
{
    DCSNetSettingWin = new FormDCSNetSetting(this);
    DCSNetSettingWin->show();
}

void FormDCSSetting::on_pushButtonSlaveIDSetting_clicked()
{
    slaveIDSettingWin = new FormSlaveIDSetting(this);
    slaveIDSettingWin->show();
}

void FormDCSSetting::on_pushButtonSlaveSetting_clicked()
{
    slaveParamWin = new FormSlaveParam(this);
    slaveParamWin->show();
}

void FormDCSSetting::on_pushButtonDMXAddrSetting_clicked()
{
    slaveDMXaddrSettingWin = new FormDMXAddrSetting(this);
    slaveDMXaddrSettingWin->show();
}

void FormDCSSetting::on_pushButtonSlaveState_clicked()
{
    slaveStateWin = new FormSlaveState(this);
    slaveStateWin->show();
}
